<?php
	include("scripts/connection.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta http-equiv="Content-Script-Type" content="text/javascript" />

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen, projection, tv" />
<!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="css/style-ie.css" media="screen, projection, tv" /><![endif]-->
<link rel="stylesheet" href="css/style-print.css" type="text/css" media="print" />

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />

<script type="text/JavaScript" src="script.js"></script>

<title>SDU</title>
</head>
<body>
<div id="wrapper">
		<?php
			include("header.php");
		?>
                    <div id="content-box-left">
				<div id="content-box-left-in">
					<div class="paging" title="" align='center'>
						<div class="box">
						    <div id="box-in">
								<div class="article">
									<h2 align='center'>LESSONS</h2><br>	
									<form action="scripts/register.php" method="post" onsubmit="return Validate()" >
										<table align="center" cellpadding="0" cellspacing="0">
											
									<?php
											echo	"<tr><td style='width: 10%; border: solid white 3px; text-align:center;'><b>faculty</b></td>";
											echo	"<td style='width: 10%; border: solid white 3px; text-align:center;'><b>groups</b></td>";
											echo	"<td style='width: 10%; border: solid white 3px; text-align:center;'><b>lesson name</b></td>";
											echo	"<td style='width: 10%; border: solid white 3px; text-align:center;'><b>type lessons</b></td>";
											
											$result = mysql_query("SELECT * FROM manager_registration_for_teachers WHERE user_status_id = '".$_SESSION['user_id']."' ORDER BY teach_groups ASC; ");
											while($row = mysql_fetch_array($result))
											{
												echo	"<tr><td style='border: solid white 3px; text-align:center;'>".$row['tech_faculty']."</td>";
												echo	"<td style='border: solid white 3px; text-align:center;'>".$row['teach_groups']."</td>";
												echo	"<td style='border: solid white 3px; text-align:center;'>".$row['teach_less_name']."</td>";
												echo	"<td style='border: solid white 3px; text-align:center;'>";
												$string = explode("|", $row['teach_type_lessons']);
												foreach($string as $s)
												{
													 echo $s."<br/>";										
												}
												echo "</td>";
												
															


											}
										?>
										</table>
									</form>
								</div>
							</div>
						</div>
						</div>
					</div>	
				 </div>
				</div>
</body>
</html>